<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<link rel="stylesheet" href="./CSS/2.进度条案例.css">

<body>
    <div id="app">
        <div class="outer">
            <div class="inner" :style="{width : count+'%'}">
            </div>
        </div>
        <span>进度{{ count+'%' }}</span>
    </div>
    <button @click="count = 0">进度0%</button>
    <button @click="count = 25">进度25%</button>
    <button @click="count = 50">进度50%</button>
    <button @click="count = 75">进度75%</button>
    <button @click="count = 100">进度100%</button>

    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>

    <script>
        const app = new Vue({
            el: '#app',
            data: {
                count: 0
            }
        })
    </script>

</body>